package com.juli.v2xdemo.util;

import android.util.Log;

/**
 * Created by juli on 2019/10/8.
 */
//55aa002008b0081122334455667788eaade517fb513e450000640bb81102006404023fa3
public class CoodUtils {
    public static String  Sudu(String Speed){
   String     Speed1=Speed.substring(0,2);
        String     Speed2=Speed.substring(2,4);
        Speed=Speed2+Speed1;
        Log.e("zzzzzzzzzz", "xx"+Speed);
        long l = Long.parseLong(Speed, 16);
        String format = String.format("%.3f", (double) l / 100);
        System.out.println("" + format);
        double l12 = Double.parseDouble(format) * 3600;
        System.out.println("" + l12);
        String format2 = String.format("%.1f", (double) l12 / 1000);
        System.out.println("" + format2);
//        Log.e("速度Speed", ""+format2);
        return  format2;
    }
}
